package com.industrial.premu.controller.doc;

import com.industrial.common.core.web.domain.AjaxResult;
import com.industrial.premu.service.PreMuGenTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/gen/table")
public class PreMuGenTableController {

    @Autowired
    private PreMuGenTableService preMuGenTableService;

    /**
     * 主要指标情况及数据来源表格
     * @return
     */
    @GetMapping("/sjly")
    public AjaxResult sjly(){
        List<Map<String, Object>> sjly = preMuGenTableService.sjly();
        return AjaxResult.success(sjly);
    }

    @GetMapping("/degb")
    public AjaxResult degb(){
        List<Map<String, Object>> degb = preMuGenTableService.degb();
        return AjaxResult.success(degb);
    }

}
